package caiziyou.com.designpattern.decotator;

public abstract class Drink {

	private String description;

	private float price;

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	public float cost() {
		return this.getPrice();
	}

	public void buy() {
		System.out.println(getDescription());
		System.out.println("消费 = " + cost() + " 元");
	}
}
